<!-- 我的表格 -->

<template>
  <WebTable>
    <RowIndex />

    <RowTime label="产生时间" bind="generateTime" width="auto" :minWidth="120" />

    <RowText label="事件编号" bind="id" :minWidth="120" />

    <RowDict label="事件等级" bind="eventLevelCode, eventLevelName" :dict="CORE.DICT.alarm_level_code" />

    <RowDict label="事件类型" bind="eventTypeId, eventTypeName" :dict="CORE.DICT.preplan_type" :width="120" />

    <RowTree
      :label="`所在${CORE.MAP.REGION}`"
      bind="areaId, areaName"
      :dict="CORE.REGION.DICT"
      :minWidth="160"
      allName
    />

    <RowText label="处置人" bind="handleUserName" :width="160" />

    <RowStatus label="处置状态" bind="handleStatus" width="auto" />

    <RowOperate :btns="['show']" :onShow="windowDetail" :width="80" />
  </WebTable>
</template>

<script>
// ============================== 导入依赖 ============================== //

import mixDetailToTable from '@admin/components/detail/mixDetailToTable'

// ============================== 导出组件 ============================== //

export default {
  /**
   * 名称定义 (实际使用名称)
   */
  name: 'MyTable',

  /**
   * 混入列表 (配置选项合并)
   */
  mixins: [mixDetailToTable('', 'DetailEmergencyEvent')],
}
</script>
